﻿using System;

namespace Hopscotch.Common.Extensions
{
	public static class StringExtensions
	{
		/// <summary>
		/// string.Contains with a specified StringComparison
		/// </summary
		public static bool Contains(this string source, string toCheck, StringComparison stringComparison)
		{
			return source.IndexOf(toCheck, stringComparison) >= 0;
		}
	}
}
